﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace middleware.webservice.dominio
{
    [Table("Mensajes")]
    [DataContract]
    public class Mensajes
    {
        [Key]
        [DataMember]
        public int MensajeId { get; set; }
        [DataMember]
        public string Titulo { get; set; }
        [DataMember]
        public bool Procesado { get; set; }
        [DataMember]
        public ICollection<Atributos> Atributos { set; get; }

        public Mensajes()
        {
            Atributos = new List<Atributos>();
        }
    }
}
